Michael Natterer [Fri, 4 Jul 2008 16:41:13 +0000 (16:41 +0000)]
set need_im_reset to FALSE instead of 0.
2008-07-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkentry.c (_gtk_entry_reset_im_context): set need_im_reset
to FALSE instead of 0.
svn path=/trunk/; revision=20762
Michael Natterer [Fri, 4 Jul 2008 14:27:40 +0000 (14:27 +0000)]
Allocate with GSlice:
2008-07-04 Michael Natterer <mitch@imendio.com>
Allocate with GSlice:
* gtk/gtkassistant.c: GtkAssistantPage
* gtk/gtkcellview.c: GtkCellViewCellInfo
* gtk/gtkentry.c: GtkEntryPasswordHint, PopupInfo
* gtk/gtkfilefilter.c: FilterRule
* gtk/gtknotebook.c: GtkNotebookPage
svn path=/trunk/; revision=20761
Michael Natterer [Fri, 4 Jul 2008 10:52:52 +0000 (10:52 +0000)]
allocate ComboCellInfo with GSlice.
2008-07-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkcombobox.c: allocate ComboCellInfo with GSlice.
svn path=/trunk/; revision=20760
Michael Natterer [Fri, 4 Jul 2008 10:46:19 +0000 (10:46 +0000)]
change "error_dialog" variable to GtkWidget fo fix two warnings.
2008-07-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkprintoperation.c (print_pages): change "error_dialog"
variable to GtkWidget fo fix two warnings.
svn path=/trunk/; revision=20759
Theppitak Karoonboonyanan [Fri, 4 Jul 2008 09:55:17 +0000 (09:55 +0000)]
Updated Thai translation.
2008-07-04 Theppitak Karoonboonyanan <thep@linux.thai.net>
* th.po: Updated Thai translation.
svn path=/trunk/; revision=20758
Michael Natterer [Fri, 4 Jul 2008 09:02:20 +0000 (09:02 +0000)]
Bug 539944 – Add GtkScaleButton API so struct fields can be marked as
2008-07-04 Michael Natterer <mitch@imendio.com>
Bug 539944 – Add GtkScaleButton API so struct fields can be marked
as private
* gtk/gtk.symbols
* gtk/gtkscalebutton.[ch]: add gtk_scale_button_get_plus_button()
and _get_minus_button(). Patch by Christian Dywan.
svn path=/trunk/; revision=20757
Matthias Clasen [Fri, 4 Jul 2008 05:05:45 +0000 (05:05 +0000)]
Fix make check
svn path=/trunk/; revision=20756
Matthias Clasen [Fri, 4 Jul 2008 04:02:35 +0000 (04:02 +0000)]
Fix make check
svn path=/trunk/; revision=20755
Matthias Clasen [Thu, 3 Jul 2008 23:33:08 +0000 (23:33 +0000)]
Fall back to the default positioning when the menuitem is not realized.
* gtk/gtkmenuitem.c: Fall back to the default positioning when
the menuitem is not realized. Patch by Björn Lindqvist.
svn path=/trunk/; revision=20754
Matthias Clasen [Thu, 3 Jul 2008 22:46:00 +0000 (22:46 +0000)]
Fix a memory leak. Patch by Christian Persch.
* gtk/gtkfilesystem.c (get_volumes_list): Fix a memory leak.
Patch by Christian Persch.
svn path=/trunk/; revision=20752
Matthias Clasen [Thu, 3 Jul 2008 22:40:33 +0000 (22:40 +0000)]
Don't select the first row if the folder is empty. Patch by Olle
* gtk/gtkfilechooserdefault.c (browse_files_select_first_row): Don't
select the first row if the folder is empty.
Patch by Olle Bergkvist.
svn path=/trunk/; revision=20751
Tor Lillqvist [Thu, 3 Jul 2008 22:11:38 +0000 (22:11 +0000)]
Bug 540861 - invalid UTF-8 in input device name
2008-07-04 Tor Lillqvist <tml@novell.com>
Bug 540861 - invalid UTF-8 in input device name
* gdk/win32/gdkinput-win32.c: Fetch the device and cursor names in
Unicode, and convert to UTF-8 for the GdkDevice's name field.
svn path=/trunk/; revision=20750
Matthias Clasen [Thu, 3 Jul 2008 18:09:04 +0000 (18:09 +0000)]
Set properties in the order in which they are specified in the xml file.
* gtk/gtkbuilderparser.c (parse_custom): Set properties in the order
in which they are specified in the xml file.
svn path=/trunk/; revision=20749
Matthias Clasen [Thu, 3 Jul 2008 18:03:13 +0000 (18:03 +0000)]
Add gtk_scale_button_get_popup
svn path=/trunk/; revision=20748
Matthias Clasen [Thu, 3 Jul 2008 17:37:07 +0000 (17:37 +0000)]
One more
svn path=/trunk/; revision=20747
Matthias Clasen [Thu, 3 Jul 2008 17:35:50 +0000 (17:35 +0000)]
Use monospace as font name, not mono. Patch by Yevgen Muntyan.
* demos/gtk-demo/printing.c: Use monospace as font name,
not mono. Patch by Yevgen Muntyan.
svn path=/trunk/; revision=20746
Matthias Clasen [Thu, 3 Jul 2008 17:29:39 +0000 (17:29 +0000)]
No more mushroom
svn path=/trunk/; revision=20745
Michael Natterer [Thu, 3 Jul 2008 13:13:23 +0000 (13:13 +0000)]
remove "_from_bindings" suffix from the names of binding signal
2008-07-03 Michael Natterer <mitch@imendio.com>
* gtk/gtkscalebutton.c: remove "_from_bindings" suffix from the
names of binding signal implementations.
svn path=/trunk/; revision=20744
Li Yuan [Thu, 3 Jul 2008 08:48:24 +0000 (08:48 +0000)]
Bug #536430. Add libgailutil.la into gail-uninstalled.pc.in.
2008-07-03 Li Yuan <li.yuan@sun.com>
* gail-uninstalled.pc.in:
Bug #536430. Add libgailutil.la into gail-uninstalled.pc.in.
svn path=/trunk/; revision=20742
Yannig MARCHEGAY [Thu, 3 Jul 2008 07:06:21 +0000 (07:06 +0000)]
Updated Occitan translation
svn path=/trunk/; revision=20741
Yannig MARCHEGAY [Thu, 3 Jul 2008 07:04:52 +0000 (07:04 +0000)]
Updated Occitan translation
svn path=/trunk/; revision=20740
Cody Russell [Thu, 3 Jul 2008 05:47:22 +0000 (05:47 +0000)]
Bug 540529 – Remove all GIMP references
2008-07-03 Cody Russell <bratsche@gnome.org>
Bug 540529 – Remove all GIMP references
* gtk+-2.0.pc.in:
* gdk-2.0.pc.in:
* gtk+-unix-print-2.0.pc.in:
* gtk+-2.0-uninstalled.pc.in:
* gdk-2.0-uninstalled.pc.in: Changed GIMP Toolkit to say
GTK+ Graphical UI Library in the pkg-config files.
svn path=/trunk/; revision=20739
Matthias Clasen [Thu, 3 Jul 2008 04:45:50 +0000 (04:45 +0000)]
Fix attribution
svn path=/trunk/; revision=20738
Cody Russell [Wed, 2 Jul 2008 20:22:30 +0000 (20:22 +0000)]
Bug 541305 – [Win32] Scrolling was broken after GdkWindow refactoring
2008-07-02 Cody Russell <bratsche@gnome.org>
Bug 541305 – [Win32] Scrolling was broken after GdkWindow refactoring
* gdk/win32/gdkwindow-win32.c: Reverted some logic so that scrolling
works again.
* gdk/win32/gdkgeometry-win32.c: Removed some more unnecessary checks.
* gdk/win32/gdkkeys-win32.c: Removed unused variable to fix compile-time
warnings.
svn path=/trunk/; revision=20737
Yannig MARCHEGAY [Wed, 2 Jul 2008 15:04:32 +0000 (15:04 +0000)]
Updated Occitan translation
svn path=/trunk/; revision=20736
Yannig MARCHEGAY [Wed, 2 Jul 2008 15:03:02 +0000 (15:03 +0000)]
Updated Occitan translation
svn path=/trunk/; revision=20735
Cody Russell [Wed, 2 Jul 2008 13:58:28 +0000 (13:58 +0000)]
Bug 541249 – [Win32] Fix some internal static methods
2008-07-02 Cody Russell <bratsche@gnome.org>
Bug 541249 – [Win32] Fix some internal static methods
* gdk/gdkwindow-win32.c: Make the interface implementation methods
static.
svn path=/trunk/; revision=20734
Michael Natterer [Wed, 2 Jul 2008 12:05:42 +0000 (12:05 +0000)]
Bug 537591 – Don't hardcode minimum width of menuitems
2008-07-02 Michael Natterer <mitch@imendio.com>
Bug 537591 – Don't hardcode minimum width of menuitems
* gtk/gtkmenuitem.c: applied patch from Christian Dywan which
introduces a "width-chars" style property which replaces the
hardcoded minimum width of menuitems with submenu. Patch
extracted from Maemo-GTK+.
svn path=/trunk/; revision=20733
Michael Natterer [Wed, 2 Jul 2008 10:14:45 +0000 (10:14 +0000)]
remove some of the million includes.
2008-07-02 Michael Natterer <mitch@imendio.com>
* gtk/gtkfilechooserdefault.c: remove some of the million includes.
svn path=/trunk/; revision=20732
Kristian Rietveld [Wed, 2 Jul 2008 09:34:24 +0000 (09:34 +0000)]
Since s/2.16/2.14/ for the new gicon property.
2008-07-02 Kristian Rietveld <kris@imendio.com>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init):
Since s/2.16/2.14/ for the new gicon property.
svn path=/trunk/; revision=20731
Kristian Rietveld [Wed, 2 Jul 2008 09:32:14 +0000 (09:32 +0000)]
Bug 455268 - Add gtk-enable-tooltips GtkSetting
2008-07-02 Kristian Rietveld <kris@imendio.com>
Bug 455268 - Add gtk-enable-tooltips GtkSetting
* gtk/gtk.symbols:
* gtk/gtktoolbar.[ch] (gtk_toolbar_[gs]et_tooltips): deprecated.
* gtk/gtksettings.c: introduce gtk-enable-tooltips XSetting.
* gtk/gtktooltip.c (_gtk_tooltip_handle_event): take the newly
introduced XSetting into account.
* demos/gtk-demo/appwindow.c: don't use the now deprecated
gtk_toolbar_set_tooltips().
svn path=/trunk/; revision=20730
Cody Russell [Wed, 2 Jul 2008 06:06:29 +0000 (06:06 +0000)]
Bug 541162 – [Win32] Update for the new GdkWindowImpl stuff
2008-07-02 Cody Russell <bratsche@gnome.org>
Bug 541162 – [Win32] Update for the new GdkWindowImpl stuff
* gdk/win32/gdkprivate-win32.h:
* gdk/win32/gdkgeometry-win32.c:
* gdk/win32/gdkevents-win32.c:
* gdk/win32/gdkwindow-win32.c: Update Win32 backend according to
the newly refactored GdkWindow code.
svn path=/trunk/; revision=20729
Li Yuan [Wed, 2 Jul 2008 04:29:33 +0000 (04:29 +0000)]
Bug #541167. Emit "object:property-change:accessible-name" when
2008-07-02 Li Yuan <li.yuan@sun.com>
* gailoptionmenu.c: (gail_option_menu_real_initialize),
(gail_option_menu_changed):
Bug #541167. Emit "object:property-change:accessible-name" when
GailOptionMenui's name changes.
svn path=/trunk/; revision=20728
Cody Russell [Tue, 1 Jul 2008 23:13:26 +0000 (23:13 +0000)]
Bug 539164 – Windows' System Menu blocks main loop
2008-07-01 Cody Russell <bratsche@gnome.org>
Bug 539164 – Windows' System Menu blocks main loop
* gdk/win32/gdkevents-win32.c: Use a modal timer proc in between
receiving WM_ENTERMENULOOP and WM_EXITMENULOOP and pump the
GLib mainloop from there.
svn path=/trunk/; revision=20726
Cody Russell [Tue, 1 Jul 2008 23:04:35 +0000 (23:04 +0000)]
Remove old ChangeLog entry
svn path=/trunk/; revision=20725
Cody Russell [Tue, 1 Jul 2008 22:57:50 +0000 (22:57 +0000)]
Revert name change
svn path=/trunk/; revision=20724
Richard Hult [Tue, 1 Jul 2008 18:27:43 +0000 (18:27 +0000)]
Some aftermath from the window impl cleanups:
2008-07-01 Richard Hult <richard@imendio.com>
Some aftermath from the window impl cleanups:
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_merge_child_input_shapes): Rename and export again.
(gdk_window_quartz_get_offsets): Make static.
svn path=/trunk/; revision=20723
Michael Natterer [Tue, 1 Jul 2008 07:45:40 +0000 (07:45 +0000)]
forgot to commit the header, fixed now.
2008-07-01 Michael Natterer <mitch@imendio.com>
* gtk/gtkscalebutton.h: forgot to commit the header, fixed now.
svn path=/trunk/; revision=20719
Kjartan Maraas [Tue, 1 Jul 2008 07:17:06 +0000 (07:17 +0000)]
Updated Norwegian bokmål translation.
2008-07-01 Kjartan Maraas <kmaraas@gnome.org>
* nb.po: Updated Norwegian bokmål translation.
svn path=/trunk/; revision=20718
Matthias Clasen [Tue, 1 Jul 2008 06:22:04 +0000 (06:22 +0000)]
Add event sound settings. Patch by Lennart Pöttering.
* gdk/x11/gdksettings.c:
* gtk/gtksettings.c: Add event sound settings.
Patch by Lennart Pöttering.
svn path=/trunk/; revision=20717
Yair Hershkovitz [Tue, 1 Jul 2008 06:01:19 +0000 (06:01 +0000)]
updated hebrew translation
svn path=/trunk/; revision=20716
Matthias Clasen [Tue, 1 Jul 2008 05:38:49 +0000 (05:38 +0000)]
Handle failure to create temp file by returning NULL.
* gtk/gtkprintoperation-unix.c
(_gtk_print_operation_platform_backend_create_preview_surface):
Handle failure to create temp file by returning NULL.
* gtk/gtkprintoperation.c (gtk_print_operation_preview_handler):
Return FALSE if surface creation fails.
(print_pages): If the preiew signal is not handled, show an
error dialog.
svn path=/trunk/; revision=20715
Michael Natterer [Mon, 30 Jun 2008 23:41:10 +0000 (23:41 +0000)]
Bug 442042 – GtkScaleButton is too limited
2008-07-01 Michael Natterer <mitch@imendio.com>
Bug 442042 – GtkScaleButton is too limited
* gtk/gtkscalebutton.[ch]: turn "orientation" into a normal
property that can be changed at any time after widget
creation. Add public API for it.
* gtk/gtk.symbols: add gtk_scale_button_get/set_orientation.
svn path=/trunk/; revision=20710
Cody Russell [Mon, 30 Jun 2008 23:01:56 +0000 (23:01 +0000)]
Practically everything changed.
2008-06-30 Cody Russell <bratsche@gnome.org>
* Practically everything changed.
Change all references of GIMP Toolkit (and variations of it)
to GTK+ Toolkit, showing no mercy at all to our beloved
ancestry. (#540529)
svn path=/trunk/; revision=20709
Michael Natterer [Mon, 30 Jun 2008 12:15:29 +0000 (12:15 +0000)]
Some unrelated cleanups found while reviewing the offscreen window patch:
2008-06-30 Michael Natterer <mitch@imendio.com>
Some unrelated cleanups found while reviewing
the offscreen window patch:
* gdk/gdkwindow.c: add missing Since: 2.14 to the redirection
functions, fix some function header indentation, update
documentation of redirect_to_drawable().
* gdk/x11/gdkwindow-x11.c
* gdk/x11/gdkpixmap-x11.c: fix function header
formatting/indentation.
* gtk/gtkwidget.c: use I_() on "damage_event".
svn path=/trunk/; revision=20708
Michael Natterer [Mon, 30 Jun 2008 11:04:42 +0000 (11:04 +0000)]
remove duplicate declaration of _gdk_window_new().
2008-06-30 Michael Natterer <mitch@imendio.com>
* gdk/gdkinternals.h: remove duplicate declaration of
_gdk_window_new().
svn path=/trunk/; revision=20707
Michael Natterer [Mon, 30 Jun 2008 10:44:47 +0000 (10:44 +0000)]
reorder source lists alphabetically.
2008-06-30 Michael Natterer <mitch@imendio.com>
* gdk/Makefile.am: reorder source lists alphabetically.
svn path=/trunk/; revision=20706
Matthias Clasen [Mon, 30 Jun 2008 05:17:02 +0000 (05:17 +0000)]
Avoid unnecessary redraws when resizing. Patch by Owen Taylor
* gtk/gtkwindow.c: Avoid unnecessary redraws when resizing.
Patch by Owen Taylor
svn path=/trunk/; revision=20705
Gil Forcada Codinachs [Sun, 29 Jun 2008 18:09:52 +0000 (18:09 +0000)]
Minor update to Catalan translation
svn path=/trunk/; revision=20704
Behdad Esfahbod [Sun, 29 Jun 2008 17:17:09 +0000 (17:17 +0000)]
Bug 530255 – GtkAboutDialog cuts off comments label Followup patch from
2008-06-29 Behdad Esfahbod <behdad@gnome.org>
Bug 530255 – GtkAboutDialog cuts off comments label
Followup patch from Jan Arne Petersen
* gtk/gtklabel.c (gtk_label_get_layout_offsets): Ensure layout.
svn path=/trunk/; revision=20703
Michael Natterer [Sat, 28 Jun 2008 17:02:20 +0000 (17:02 +0000)]
properly indent the newly added GtkSelectionData accessors. Some newlines
2008-06-28 Michael Natterer <mitch@imendio.com>
* gtk/gtkselection.h: properly indent the newly added
GtkSelectionData accessors. Some newlines can't hurt either.
svn path=/trunk/; revision=20702
Mikael Hallendal [Sat, 28 Jun 2008 16:21:28 +0000 (16:21 +0000)]
Removed accidental empty row in gtk_box_pack.
2008-06-27 Mikael Hallendal <micke@imendio.com>
* gtk/gtkbox.c (gtk_box_pack): Removed accidental empty row.
svn path=/trunk/; revision=20701
Mikael Hallendal [Sat, 28 Jun 2008 16:16:26 +0000 (16:16 +0000)]
Factor out gtk_box_pack from gtk_box_pack_start and gtk_box_pack_end to reduce code duplication.
2008-06-27 Mikael Hallendal <micke@imendio.com>
* gtk/gtkbox.c (gtk_box_pack, gtk_box_pack_start, gtk_box_pack_end):
Factored out gtk_box_pack from gtk_box_pack_start and use it from both
pack_start and pack_end in order to reduce the code duplication.
svn path=/trunk/; revision=20700
Jorge Gonzalez Gonzalez [Fri, 27 Jun 2008 22:00:07 +0000 (22:00 +0000)]
Updated Spansih translation
svn path=/trunk/; revision=20699
Michael Natterer [Fri, 27 Jun 2008 20:13:25 +0000 (20:13 +0000)]
Bug 442042 – GtkScaleButton is too limited
2008-06-27 Michael Natterer <mitch@imendio.com>
Bug 442042 – GtkScaleButton is too limited
* gtk/gtkscalebutton.c (gtk_scale_button_init): set the name
"gtk-scalebutton-popup-window" on the popup window so it is
properly themeable.
svn path=/trunk/; revision=20698
Kristian Rietveld [Fri, 27 Jun 2008 17:06:06 +0000 (17:06 +0000)]
adapt to use GdkWindowImpl interface.
2008-06-27 Kristian Rietveld <kris@imendio.com>
* gdk/quartz/gdkgeometry-quartz.c:
* gdk/quartz/gdkwindow-quartz.c:
* gdk/quartz/gdkprivate-quartz.h: adapt to use GdkWindowImpl
interface.
svn path=/trunk/; revision=20697
Carlos Garnacho [Fri, 27 Jun 2008 15:33:42 +0000 (15:33 +0000)]
Fix two potential critical warnings. Bug #539470.
2008-06-27 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkrecentmanager.c (get_icon_for_mime_type): Fix two potential
critical warnings. Bug #539470.
svn path=/trunk/; revision=20696
Emmanuele Bassi [Fri, 27 Jun 2008 14:27:44 +0000 (14:27 +0000)]
Abstract some GdkWindow API into an interface that the backends must
2008-06-27 Emmanuele Bassi <ebassi@gnome.org>
Abstract some GdkWindow API into an interface that the backends
must implement. (based on a patch by Alex Larsson)
* gdk/Makefile.am: Add gdkwindowimpl.[ch]
* gdk/gdk.symbols: Move symbols around.
* gdk/gdkinternals.h:
* gdk/gdkwindowimpl.[ch]: Move some of the GdkWindow API we require
from the backends to a GInterface that the backends should implement
instead.
* gdk/gdkwindow.c: Provide some of the GdkWindow public API as a
wrapper call around the GdkWindowImpl interface vtable.
* gdk/x11/gdkevents-x11.c:
* gdk/x11/gdkgeometry-x11.c:
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkwindow-x11.c:
* gdk/x11/gdkwindow-x11.h: Update the X11 backend to implement
the GdkWindowImpl interface.
svn path=/trunk/; revision=20695
Martyn James Russell [Fri, 27 Jun 2008 11:51:40 +0000 (11:51 +0000)]
Fixed the FAQ location in the warning produced here.
* gtk/gtkcontainer.c: (gtk_container_add): Fixed the FAQ location
in the warning produced here.
svn path=/trunk/; revision=20693
Michael Natterer [Fri, 27 Jun 2008 09:33:32 +0000 (09:33 +0000)]
Bug 442042 – GtkScaleButton is too limited
2008-06-27 Michael Natterer <mitch@imendio.com>
Bug 442042 – GtkScaleButton is too limited
* gtk/gtkscalebutton.c: add "orientation" property. Make sure the
stuff that is part of the public API continues to be created in
init() to stay compatible. Move creating of the popup scale to
constructor(). Add an internal HScale class. Changed popup
positioning for horizontal scales accordingly.
svn path=/trunk/; revision=20692
Michael Natterer [Thu, 26 Jun 2008 17:14:27 +0000 (17:14 +0000)]
gtk/gtkscalebutton.c remove redundant init() and class_init() prototypes,
2008-06-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkscalebutton.c
* gtk/gtkvolumebutton.c: remove redundant init() and class_init()
prototypes, remove redundant includes, remove a little trailing
whitespace.
svn path=/trunk/; revision=20691
Richard Hult [Thu, 26 Jun 2008 13:01:40 +0000 (13:01 +0000)]
Patch from Christian Dywan to clean up selection data setting.
2008-06-26 Richard Hult <richard@imendio.com>
* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
* gtk/gtkquartz.c:
(_gtk_quartz_get_selection_data_from_pasteboard),
(_gtk_quartz_set_selection_data_for_pasteboard): Patch from
Christian Dywan to clean up selection data setting.
svn path=/trunk/; revision=20690
Richard Hult [Thu, 26 Jun 2008 12:44:10 +0000 (12:44 +0000)]
Don't use deprecated function gtk_widget_ref, replace with g_object_ref.
2008-06-26 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c (gtk_drag_begin_internal): Don't use
deprecated function gtk_widget_ref, replace with g_object_ref.
svn path=/trunk/; revision=20689
Michael Natterer [Thu, 26 Jun 2008 10:19:23 +0000 (10:19 +0000)]
#include "config.h"
2008-06-26 Michael Natterer <mitch@imendio.com>
* gtk/gtkfilesystem.c: #include "config.h"
svn path=/trunk/; revision=20688
Carlos Garnacho [Thu, 26 Jun 2008 09:41:13 +0000 (09:41 +0000)]
current_folder can be NULL here, do not try to reference it (Bug #540235)
2008-06-26 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkfilechooserdefault.c
(gtk_file_chooser_default_get_current_folder): current_folder can be
NULL here, do not try to reference it (Bug #540235)
(gtk_file_chooser_default_get_files): Deal better with
gtk_file_chooser_default_get_current_folder() being able to return
NULL.
svn path=/trunk/; revision=20687
Michael Natterer [Thu, 26 Jun 2008 09:06:48 +0000 (09:06 +0000)]
allocate the GtkTextUtilCallbackInfo structs with GSlice.
2008-06-26 Michael Natterer <mitch@imendio.com>
* gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems):
allocate the GtkTextUtilCallbackInfo structs with GSlice.
svn path=/trunk/; revision=20686
Michael Natterer [Wed, 25 Jun 2008 09:32:38 +0000 (09:32 +0000)]
there is no reason to include <gtk/gtktypebuiltins.h> in the middle of the
2008-06-25 Michael Natterer <mitch@imendio.com>
* gtk/gtktypeutils.h: there is no reason to include
<gtk/gtktypebuiltins.h> in the middle of the file, move it to top,
replacing the <glib-object.h> include. Also move the remaining few
non-deprecated things to the top and move some deprecated things
around to clean up the mess with too many deprecated sections even
more.
svn path=/trunk/; revision=20685
Michael Natterer [Tue, 24 Jun 2008 19:11:30 +0000 (19:11 +0000)]
deprecate gtk_type_init() unconditionally (also for GTK_COMPILATION). Move
2008-06-24 Michael Natterer <mitch@imendio.com>
* gtk/gtktypeutils.h: deprecate gtk_type_init() unconditionally
(also for GTK_COMPILATION). Move some deprecated typedefs around
to reduce the mess with zillions of deprecated sections.
* gtk/gtkmain.c (do_post_parse_initialization): replace the call
to gtk_type_init() by g_type_init() and gtk_object_get_type() even
though the latter is probably completely pointless.
svn path=/trunk/; revision=20684
Kjartan Maraas [Tue, 24 Jun 2008 19:04:15 +0000 (19:04 +0000)]
Updated Norwegian bokmål translation.
2008-06-24 Kjartan Maraas <kmaraas@gnome.org>
* nb.po: Updated Norwegian bokmål translation.
svn path=/trunk/; revision=20683
Johan Dahlin [Tue, 24 Jun 2008 13:41:13 +0000 (13:41 +0000)]
Revert GtkScaleButton accesses for plus/minus buttons, as per #539944
svn path=/trunk/; revision=20682
Michael Natterer [Tue, 24 Jun 2008 10:49:12 +0000 (10:49 +0000)]
also revert change in how the dialog's vbox was added (bug #539732).
2008-06-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkdialog.c (gtk_dialog_init): also revert change in how
the dialog's vbox was added (bug #539732).
svn path=/trunk/; revision=20681
Carlos Garnacho [Tue, 24 Jun 2008 10:22:40 +0000 (10:22 +0000)]
Remove container implementation, which isn't thought for handling
2008-06-24 Carlos Garnacho <carlos@imendio.com>
* gtk/gtkdialog.[ch]: Remove container implementation, which isn't
thought for handling non-direct children. Fixes #539732.
(gtk_dialog_pack_start) (gtk_dialog_pack_end): Removed as well, it
doesn't provide enough control to API users (removing, reordering...),
this is better handled through:
(gtk_dialog_get_content_area): New function which just returns
dialog->vbox.
* gtk/gtk.symbols: Modify accordingly.
* docs/reference/gtk/tmpl/gtkdialog.sgml: Update docs to recommend
using gtk_dialog_get_[action|content]_area() instead of accessing
dialog struct members directly.
svn path=/trunk/; revision=20680
Michael Natterer [Tue, 24 Jun 2008 10:16:01 +0000 (10:16 +0000)]
gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.h
2008-06-24 Michael Natterer <mitch@imendio.com>
* gtk/gtkassistant.h
* gtk/gtkcellrenderer.h
* gtk/gtkfilechooserentry.h
* gtk/gtkprivate.h
* gtk/gtktooltip.h
* gtk/gtktreeview.h
* gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h
if there is any other widget included, they all have to include
their respective parent classes (the is-a relation works for
includes too).
svn path=/trunk/; revision=20679
Michael Natterer [Tue, 24 Jun 2008 09:55:08 +0000 (09:55 +0000)]
remove includes from this internal header.
2008-06-24 Michael Natterer <mitch@imendio.com>
* gtk/gtktextutil.h: remove includes from this internal header.
* gtk/gtktextutil.c: include gtktextbuffer.h before gtktextutil.h.
svn path=/trunk/; revision=20678
Daniel Nylander [Mon, 23 Jun 2008 22:37:14 +0000 (22:37 +0000)]
sv.po: Updated Swedish translation
svn path=/trunk/; revision=20677
Michael Natterer [Mon, 23 Jun 2008 14:28:13 +0000 (14:28 +0000)]
formatting.
2008-06-23 Michael Natterer <mitch@imendio.com>
* gtk/gtkinvisible.h: formatting.
svn path=/trunk/; revision=20676
Michael Natterer [Mon, 23 Jun 2008 14:07:19 +0000 (14:07 +0000)]
gtk/gtkaction.h gtk/gtkbuildable.h gtk/gtkbuilderprivate.h
2008-06-23 Michael Natterer <mitch@imendio.com>
* gtk/gtkaction.h
* gtk/gtkbuildable.h
* gtk/gtkbuilderprivate.h
* gtk/gtkcelllayout.h
* gtk/gtkentrycompletion.h
* gtk/gtkfilechoosersettings.h
* gtk/gtkfilesystem.h
* gtk/gtkfilesystemmodel.h
* gtk/gtkicontheme.h
* gtk/gtklinkbutton.h
* gtk/gtkpagesetup.h
* gtk/gtkpapersize.h
* gtk/gtkprintcontext.h
* gtk/gtkprintoperation.h
* gtk/gtkprintoperationpreview.h
* gtk/gtkprintsettings.h
* gtk/gtkrecentchooserprivate.h
* gtk/gtkrecentmanager.h
* gtk/gtksearchengine.h
* gtk/gtktexttag.h
* gtk/gtktreeselection.h
* gtk/gtktreeviewcolumn.h
* gtk/gtkuimanager.h: remove redundant inclusion of <glib.h> and
<glib-object.h>. There is no point in relying on them being pulled
in by other headers in some places and placing them explicitly in
other places, so choose the "as little includes as possible"
approach and get rid of them.
svn path=/trunk/; revision=20675
Kristian Rietveld [Mon, 23 Jun 2008 12:09:15 +0000 (12:09 +0000)]
do not hard code the prefix of the enum, use @ENUMPREFIX@ instead (you
2008-06-23 Kristian Rietveld <kris@imendio.com>
* gdk/gdkenumtypes.h.template:
* gdk-pixbuf/gdk-pixbuf-enum-types.h.template:
* gtk/gtktypebuiltins.h.template:
* perf/typebuiltins.h.template: do not hard code the prefix of the
enum, use @ENUMPREFIX@ instead (you need an up to date glib for this).
svn path=/trunk/; revision=20674
Michael Natterer [Mon, 23 Jun 2008 10:47:22 +0000 (10:47 +0000)]
gtk/gtkmountoperation.h gtk/gtktestutils.h remove as many includes as
2008-06-23 Michael Natterer <mitch@imendio.com>
* gtk/gtkmountoperation.h
* gtk/gtktestutils.h
* gtk/gtkshow.[ch]: remove as many includes as possible from these
new files. They can't be included individually, so nothing can break.
svn path=/trunk/; revision=20673
Changwoo Ryu [Sun, 22 Jun 2008 22:31:36 +0000 (22:31 +0000)]
Updated Korean translation
svn path=/trunk/; revision=20672
Changwoo Ryu [Sun, 22 Jun 2008 22:31:18 +0000 (22:31 +0000)]
Updated Korean translation.
svn path=/trunk/; revision=20671
Michael Natterer [Sun, 22 Jun 2008 16:42:22 +0000 (16:42 +0000)]
use g_param_spec_flags(), not enum() when registering the "modifier-mask"
2008-06-22 Michael Natterer <mitch@imendio.com>
* gtk/gtkaccelgroup.c: use g_param_spec_flags(), not enum() when
registering the "modifier-mask" property.
svn path=/trunk/; revision=20670
Johan Dahlin [Sun, 22 Jun 2008 14:28:52 +0000 (14:28 +0000)]
Include "config.h" instead of <config.h> Command used: find -name
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Mitch and Tim
svn path=/trunk/; revision=20669
Jorge Gonzalez Gonzalez [Sat, 21 Jun 2008 19:34:44 +0000 (19:34 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=20668
Jorge Gonzalez Gonzalez [Sat, 21 Jun 2008 19:33:43 +0000 (19:33 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=20667
Carlos Garnacho [Sat, 21 Jun 2008 14:56:07 +0000 (14:56 +0000)]
Bug 539466 – GtkMenuShell API/ABI break in trunk.
2008-06-21 Carlos Garnacho <carlos@imendio.com>
Bug 539466 – GtkMenuShell API/ABI break in trunk.
* gtk/gtkmenushell.h: Fix API/ABI break, two guint fields had
different name and packing width.
svn path=/trunk/; revision=20666
Johan Dahlin [Sat, 21 Jun 2008 13:09:57 +0000 (13:09 +0000)]
Cast to guint8* to avoid a compiler warning.
2008-06-21 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkiconcachevalidator.c (check_pixel_data): Cast to guint8* to avoid
a compiler warning.
svn path=/trunk/; revision=20665
Johan Dahlin [Sat, 21 Jun 2008 12:34:12 +0000 (12:34 +0000)]
Document a style property
2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbutton.c: Document a style property
svn path=/trunk/; revision=20664
Michael Natterer [Sat, 21 Jun 2008 10:44:26 +0000 (10:44 +0000)]
remove redundant include, fix indentation, replace header by a GDK
2008-06-21 Michael Natterer <mitch@imendio.com>
* gdk/gdkapplaunchcontext.h: remove redundant include, fix
indentation, replace header by a GDK copyright header (don't say
"The Gnome Library"), remove trailing whitespace.
svn path=/trunk/; revision=20663
Hans Breuer [Sat, 21 Jun 2008 09:49:00 +0000 (09:49 +0000)]
fix 'function' : incompatible types - from 'struct _cairo *' to 'struct
2008-06-21 Hans Breuer <hans@breuer.org>
* gtk/gtkprintoperation-win32.c(1713) : fix 'function' : incompatible
types - from 'struct _cairo *' to 'struct _cairo_surface *' by
passing the surface to cairo_surface_show_page(), not the context
* gtk/gtkprintoperation-win32.c(866) : get rid of warning C4018:
'<' : signed/unsigned mismatch by using guint for the loop
* gtk/gtkmenu.c(gtk_menu_get_property) : property 'menu::active' is
an uint, gtk_menu_get_active() returns the widget pointer. Convert
the latter to the former by calculating the index in menu::children
Also fix some occurences of g_return_if_fail() where
g_return_val_if_fail() was meant
svn path=/trunk/; revision=20662
Björn Lindqvist [Sat, 21 Jun 2008 01:03:25 +0000 (01:03 +0000)]
Bug 539363 – Segfault when creating GtkPlugs
2008-06-21 Björn Lindqvist <bjourne@gmail.com>
Bug 539363 – Segfault when creating GtkPlugs
* gtk/gtkplug.c (gtk_plug_class_init): Spaces not allowed in
property names. "socket window" => "socket-window"
svn path=/trunk/; revision=20661
Jody Goldberg [Sat, 21 Jun 2008 00:53:17 +0000 (00:53 +0000)]
Fix life cycle to avoid crash. [#536966]
2008-06-20 Jody Goldberg <jody@gnome.org>
* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) :
Fix life cycle to avoid crash. [#536966]
svn path=/trunk/; revision=20660
Gabor Keleman [Fri, 20 Jun 2008 23:28:48 +0000 (23:28 +0000)]
Fix some accels
svn path=/trunk/; revision=20659
Gabor Kelemen [Fri, 20 Jun 2008 22:31:47 +0000 (22:31 +0000)]
Translation updated.
2008-06-21 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=20658
Hans Breuer [Fri, 20 Jun 2008 20:39:22 +0000 (20:39 +0000)]
must return a value of the appropriate type with g_return_val_if_fail
2008-06-20 Hans Breuer <hans@breuer.org>
* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
a value of the appropriate type with g_return_val_if_fail
* gdk/gdkconfig.h.win32 : add the GSEAL definition here as well
* gtk/gtkfilesystem.c : don't add the "File System" on win32
* tests/makefile.msc : remove broken autotestfile(system|chooser)
from build
svn path=/trunk/; revision=20657
Johan Dahlin [Fri, 20 Jun 2008 20:11:46 +0000 (20:11 +0000)]
Document and use - instead of _ in signal names.
2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkeditable.c: Document and use - instead of _ in signal names.
svn path=/trunk/; revision=20656
Johan Dahlin [Fri, 20 Jun 2008 19:42:53 +0000 (19:42 +0000)]
Fix up deprecated markup syntax. Add version numbers and a message on the
2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbutton.c:
* gtk/gtkcolorsel.c:
* gtk/gtkentry.c:
* gtk/gtkitemfactory.c:
* gtk/gtknotebook.c:
Fix up deprecated markup syntax. Add version numbers and
a message on the remaning ones.
svn path=/trunk/; revision=20655
Mikael Hallendal [Fri, 20 Jun 2008 19:26:50 +0000 (19:26 +0000)]
Replaced use of gtk_signal_connect with the g_signal_connect equivalents.
2008-06-20 Mikael Hallendal <micke@imendio.com>
* tests/testthreads.c: Use g_signal_connect instead of
gtk_signal_connect.
* demos/testgtk/main.c: switched to use GSignal instead of GtkSignal.
While the code is not built, people may still look at it.
svn path=/trunk/; revision=20654
Kjartan Maraas [Fri, 20 Jun 2008 18:52:52 +0000 (18:52 +0000)]
reviewed by: <Carlos Garnacho <garnacho@gnome.org>
2008-06-20 Kjartan Maraas <kmaraas@gnome.org>
reviewed by: <Carlos Garnacho <garnacho@gnome.org>
* gtk/gtkbuilder.h:
* gtk/gtkliststore.h:
* gtk/gtkobject.h:
* gtk/gtktextchild.h:
* gtk/gtktreemodelfilter.h:
* gtk/gtktreemodelsort.h:
* gtk/gtktreestore.h:
#include <gdkconfig.h> not <gdk/gdkconfig.h>
svn path=/trunk/; revision=20653
Martyn James Russell [Fri, 20 Jun 2008 15:10:00 +0000 (15:10 +0000)]
Fix warnings from calling g_object_notify() on a GtkAccelGroup without
* gtk/gtkaccelgroup.c: Fix warnings from calling
g_object_notify() on a GtkAccelGroup without casting to a
GObject.
svn path=/trunk/; revision=20652